<?php
namespace app\index\controller;
use think\Controller;
use think\Validate;
use think\Db;
use think\Session;
class About extends Basic
{  

	
    public function index()
    {
      
	  $news=Db::name('newsabount')->order('id desc')->paginate(10);
      $this->assign("news",$news);

     return $this->fetch();
    }
     public function indexcon()
    {
      
	  $news=Db::name('newsabount')->where('id',input('param.id'))->find();
      $this->assign("new",$news);

     return $this->fetch();
    }
	 public function indexf()
    {
      
	  $list=Db::name('ratype')->where(array('id'=>'1'))->select();
	  $this->assign('fl',$list);
	  if(empty(input('param.id'))){
		  
		  $id=$list[0]['id'];
		  
	  }else{
	  $id=input('param.id');
	  }
	
     $list=Db::name('article')->where('flid',$id)->select();

	 $this->assign('list',$list);
	  $this->assign('id',$id);
	 

     return $this->fetch();
    }

	public function indexff()
    {
      
	  
	  if(empty(input('param.id'))){
		  
		exit();
	  }else{
	  $id=input('param.id');
	  }
	
     $list=Db::name('article')->alias('a')->join('__RATYPE__ w','a.flid=w.id')->order('id desc')->field('a.*,w.title')->where('a.id="'.$id.'"')->find();

	 $this->assign('list',$list);
	  $this->assign('id',$id);
	 

     return $this->fetch();
    }

	public function mypl()
    {

     return $this->fetch();
    }
	public function mygz()
    {

     return $this->fetch();
    }
	public function about()
    {

     return $this->fetch();
    }
	
}
